<template>
  <div class="real-face-success">
    <img class="logo" src="@/assets/img/sign-success.png" alt="" />
    <span class="title">认证成功</span>
    <van-button class="btn" type="primary" block @click="returnSign"
      >返回继续签约</van-button
    >
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { useRoute, useRouter } from 'vue-router'
export default defineComponent({
  setup() {
    const route = useRoute()
    const router = useRouter()
    const returnSign = () => {
      router.push({
        path: '/check-contract',
        query: {
          contractId: route.query.contractId
        }
      })
    }
    return { returnSign }
  }
})
</script>

<style scoped lang="less">
.real-face-success {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 104px 20px;
  .logo {
    height: 75px;
    width: 75px;
    padding-bottom: 20px;
  }
  .title {
    font-size: 20px;
    color: #101010;
  }
  .btn {
    height: 48px;
    margin-top: 40px;
    font-size: 16px;
  }
}
</style>
